// 小白的服务器, 要啥给啥.

const http = require("http");
const fs = require("fs");

// const filePath = "/home/dandelight/unsupervised_adaptation.mp4"
const filePath = "/home/dandelight/unsupervised_adaptation.mp4";

const port = 1337;
http
  .createServer((request, response) => {
    fs.readFile(filePath, (err, data) => {
      response.end(data, "video/mpeg4");
    });
  })
  .listen(port);
console.log(`Listening at ${port}`);
